package com.oocl.tm.main;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import com.oocl.tm.clientThread.ClientThread;
import com.oocl.tm.log4j.Log4j;

public class Bootstrap {

	
	public static void main(String[] args){
		
		ServerSocket server;
		try {
			server = new ServerSocket(8888);
			Log4j.getLogger().info("[ Server start ]");
			while(true){	
				Socket client = server.accept();
				new ClientThread(client).start();
			
			}
		} catch (IOException e) {
			Log4j.getLogger().fatal("[ Server exception ]");
			Log4j.getLogger().fatal(e, e.fillInStackTrace());
		}
	}
}
